package cn.waka.sys.admin.object;

import java.util.ArrayList;
import java.util.List;

public class Dic {
	
	private int id;
	private int pid;
	private String key;
	private String name;
	private String icon;
	private int sort;
	private int status;
	private List<Dic> children;
	private String spl;
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getPid() {
		return pid;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public int getSort() {
		return sort;
	}

	public void setSort(int sort) {
		this.sort = sort;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public List<Dic> getChildren() {
		return children;
	}

	public void setChildren(List<Dic> children) {
		this.children = children;
	}
	
	public void add(Dic child){
		if(children==null){
			children=new ArrayList<Dic>();
		}
		children.add( child);
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getSpl() {
		return spl;
	}

	public void setSpl(String spl) {
		this.spl = spl;
	}
	
	
}
